﻿using System;

namespace Sharp.Platform
{
    /// <summary>
    /// 默认排序
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class DefaultSorterAttribute : System.Attribute
    { /// <summary>
        /// 默认排序
        /// </summary>
        public DefaultSorterAttribute()
        {
            this.Isreverse = true;
        }

        /// <summary>
        /// 默认排序
        /// </summary>
        /// <param name="isreverse">倒序</param>
        public DefaultSorterAttribute(bool isreverse)
        {
            this.Isreverse = isreverse;
        }
        /// <summary>
        /// 属性名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 是否倒序
        /// </summary>
        public bool Isreverse { get; set; }
    }
}
